package database.connector;

import database.live.DatabaseDAO;
import database.live.MySqlDAO;
import engine.Statics;


/*
 * 
 * This is the basic factory to get the database connector.
 * 
 * 
 */

public class DatabaseFactory {
	
	private DatabaseFactory(){};
		
	public static DBConnector getConnector()
	{
		switch (Statics.DB_MODE)
		{
			case LIVE : return new MySqlConnector();
			case IN_MEMORY : return null;
			default : return null;
		}		
	}
	
	public static DatabaseDAO getDAO()
	{
		switch (Statics.DB_MODE)
		{
			case LIVE : return new MySqlDAO();
			case IN_MEMORY : return null;
			default : return null;
		}
	}

}
